package com.zxy.ziems.server.device.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxy.btp.mybatis.base.BaseEntity;

import java.math.BigDecimal;

/**
 * 设备属性配置告警类型
 * @author 10348359
 * @create 2024-03-28 9:25
 */
@TableName("t_device_property_alarm")
public class DevicePropertyAlarmEntity extends BaseEntity {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 设备Id
     */
    private String deviceId;

    /**
     * 设备属性Id
     */
    private String deviceDataTypeId;

    /**
     * 告警类型
     */
    private String alarmTypeId;

    /**
     * 值上限
     */
    private BigDecimal maxValue;

    /**
     * 值下限
     */
    private BigDecimal minValue;

    /**
     *  1是生效
     *  0 是不生效
     */
    private Integer enableStatus;

    /**
     * 描述
     */
    private String description;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceDataTypeId() {
        return deviceDataTypeId;
    }

    public void setDeviceDataTypeId(String deviceDataTypeId) {
        this.deviceDataTypeId = deviceDataTypeId;
    }

    public String getAlarmTypeId() {
        return alarmTypeId;
    }

    public void setAlarmTypeId(String alarmTypeId) {
        this.alarmTypeId = alarmTypeId;
    }

    public BigDecimal getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(BigDecimal maxValue) {
        this.maxValue = maxValue;
    }

    public BigDecimal getMinValue() {
        return minValue;
    }

    public void setMinValue(BigDecimal minValue) {
        this.minValue = minValue;
    }

    public Integer getEnableStatus() {
        return enableStatus;
    }

    public void setEnableStatus(Integer enableStatus) {
        this.enableStatus = enableStatus;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
